/*
 * Copyright (c) 2022 Kirky
 * Licensed under the Open Software Licence, Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://opensource.org/licenses/osl-3.0.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lingeringdream.luciole.model.entity;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Column;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

/**
 * 等级表
 *
 * @author Kirky
 * @version 1.0
 * @date 2022/4/29
 */
@Entity(tableName = "level")
public class Level extends OrmObject {

    @PrimaryKey(autoGenerate = true)
    private Integer id;

    /**
     * 等级编号
     */
    @Column(name = "level", notNull = true, unique = true, index = true)
    private Integer level;

    /**
     * 等级名称
     */
    @Column(name = "name", notNull = true)
    private String name;

    /**
     * 等级积分
     */
    @Column(name = "score", notNull = true)
    private Integer score;

    /**
     * 等级经验
     */
    @Column(name = "experience", notNull = true)
    private Integer experience;

    /**
     * 等级描述
     */
    @Column(name = "description", notNull = true)
    private String description;

    /**获取时间*/
    @Column(name = "get_time", notNull = true)
    private Long getTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getExperience() {
        return experience;
    }

    public void setExperience(Integer experience) {
        this.experience = experience;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getGetTime() {
        return getTime;
    }

    public void setGetTime(Long getTime) {
        this.getTime = getTime;
    }
}
